/***********************************************************************
    filename:   DaterIcon.h
    created:    10/4/2012
    author:     4Ys

    purpose:    Defines class for Icon objects in UI
*************************************************************************/
#ifndef _DaterIcon_h_
#define _DaterIcon_h_

#include "cegui.h"
#include "DaterMainWindow.h"

#include <string>

class Icon
{
	/*!
	\brief
		Defines the iron in windows of UI.
	*/
public:
		/* !
		\brief
			Construct the sample of class Button.

		\param linkedWindow
			- a mainWindow* point to window linked.
			
		\param rootWindow
			- the window where icon in.
		*/
	Icon(MainWindow* linkedWindow, CEGUI::Window* rootWindow);

private:
	MainWindow* _linkedWindow;
	CEGUI::Window* _root;

	std::string _name;

	bool handle_DoubleClicked(const CEGUI::EventArgs& args);

	bool handle_releaseAnimationInstance(const CEGUI::EventArgs& args);
};

#endif